import request from '@/utils/request'

//登录接口
export function loginApi(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

//获取用户信息
export function getInfoApi(token) {
  return request({
  url:'/sys/profile',
  method:'post',

  })
}

//获取员工基本信息
export function  sysUserIdApi(id) {
  return request({
    url:`/sys/user/${id}`
  })
  
}


//退出登录
export function logoutApi() {
  return request({
 
  })
}
